package cn.stylefeng.guns.modular.business.frequency.financetransport.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 订单财务信息表
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FinanceTransportParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Long id;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空",groups = {add.class,edit.class})
    private Long orderId;

    /**
     * 运单id
     */
    @NotNull(message = "运单id不能为空",groups = {add.class,edit.class})
    private Long transportId;

    /**
     * 承运应付
     */
    @NotNull(message = "承运应付不能为空",groups = {add.class,edit.class})
    private BigDecimal transport;

    /**
     * 承运已付
     */
    @NotNull(message = "承运已付不能为空",groups = {add.class,edit.class})
    private BigDecimal transportHas;

    /**
     * 承运未付
     */
    @NotNull(message = "承运未付不能为空",groups = {add.class,edit.class})
    private BigDecimal transportUn;

    /**
     * 承运结算人
     */
    @NotNull(message = "承运结算人不能为空",groups = {add.class,edit.class})
    private String transportSettlementName;

    /**
     * 承运结算人电话
     */
    @NotNull(message = "承运结算人电话不能为空",groups = {add.class,edit.class})
    private String transportSettlementPhone;

    /**
     * 承运付款方式
     */
    @NotNull(message = "承运付款方式不能为空",groups = {add.class,edit.class})
    private Integer transportSettlementType;

}
